#pragma once

#include "wx/socket.h"
#include "wx/url.h"
#include "wx/wfstream.h"
#include <wx/stream.h>

enum {
	HANDINIT = 91,
	HANDACK,
	GETSVRDATA,
	GETINITDATA,
	CLOSECONNECT,
	CLOSESVR,
	WLSDUMP
};

class CTuxedoSite
{
public:
	CTuxedoSite(void);
	~CTuxedoSite(void);
	int Connect( wxString IP, wxInt16 Port );
	int HandShake();
	wxString ActVsAgent( int flag, wxString buff );
	int Close();
	int TestConnect();
	void InitSocket(wxEvtHandler& handler, int id);
	int OnEvent(wxSocketEvent& event);

private:
	wxSocketClient *m_sock;
	bool b_Connected;
	bool b_Verified;

};